package service.impl;

import dao.InvedetailsDao;
import entity.Invedetails;
import org.springframework.stereotype.Service;
import service.InvedetailsService;

import javax.annotation.Resource;
import java.util.List;
@Service("invedetailsService")
public class lnvedetailsimpl implements InvedetailsService {

    @Resource(name = "invedetailsDao")
    private InvedetailsDao invedetailsDao;

    @Override
    public List<Invedetails> query(int typeid) {
        return invedetailsDao.query(typeid);
    }

    @Override
    public List<Invedetails> queryorder(String ordernumber) {
        return invedetailsDao.queryorder(ordernumber);
    }

    @Override
    public int add(Invedetails invedetails) {
        return invedetailsDao.add(invedetails);
    }

    @Override
    public int del(String ordernumber) {
        return invedetailsDao.del(ordernumber);
    }

    @Override
    public int update(int typeid) {
        return invedetailsDao.update(typeid);
    }

    @Override
    public int delid(int id) {
        return invedetailsDao.delid(id);
    }
}
